package AStarAlgo;

/**
 * <p> TODU </P>
 *
 * @author yeager
 * @Version V1.1.1.0
 * @date 2023/11/24 13:48
 */
public class APoint {
    boolean isWall = false;
    int x;
    int y;
    APoint father;
    int G = 0;
    int old_G = 0;
    int new_G = 0;
    int H = 0;
    int F  = 0;
    int Sconst = 10;

    public APoint()
    {

    }

    public APoint(int x, int y)
    {
        this.x = x;
        this.y = y;
    }

    public boolean IsWall()
    {
        return isWall;
    }
    public void setWall(boolean isWall)
    {
        this.isWall = isWall;
    }


    public APoint getFather()
    {
        return father;
    }
    public void setFather(APoint father)
    {
        this.father =father;
    }
    public int getF()
    {
        return G+H;
    }
}
